import service from '@/utils/request'

// @Tags Sign
// @Summary 创建签到管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Sign true "创建签到管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /sign/createSign [post]
export const createSign = (data) => {
    return service({
        url: '/sign/createSign',
        method: 'post',
        data
    })
}

// @Tags Sign
// @Summary 删除签到管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Sign true "删除签到管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sign/deleteSign [delete]
export const deleteSign = (params) => {
    return service({
        url: '/sign/deleteSign',
        method: 'delete',
        params
    })
}

// @Tags Sign
// @Summary 批量删除签到管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除签到管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sign/deleteSign [delete]
export const deleteSignByIds = (params) => {
    return service({
        url: '/sign/deleteSignByIds',
        method: 'delete',
        params
    })
}

// @Tags Sign
// @Summary 更新签到管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Sign true "更新签到管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /sign/updateSign [put]
export const updateSign = (data) => {
    return service({
        url: '/sign/updateSign',
        method: 'put',
        data
    })
}

// @Tags Sign
// @Summary 用id查询签到管理
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Sign true "用id查询签到管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sign/findSign [get]
export const findSign = (params) => {
    return service({
        url: '/sign/findSign',
        method: 'get',
        params
    })
}

// @Tags Sign
// @Summary 分页获取签到管理列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取签到管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sign/getSignList [get]
export const getSignList = (params) => {
    return service({
        url: '/sign/getSignList',
        method: 'get',
        params
    })
}

export const getAllClass = (params) => {
    return service({
        url: '/sign/getSignList',
        method: 'get',
        params
    })
}
